<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <!-- option 选项的意思 -->
    <div id="app">
        <select name="city" v-model="city">
            <option value="北京" >北京</option>
            <option value="上海">上海</option>
            <option value="广州">广州</option>
            <option value="深圳">深圳</option>
            <option value="曹县">曹县</option>
        </select>

        <!-- multiple多个,倍数的意思.可以在下拉框中选择多个 -->
        <select name="food"  multiple v-model="food">
            <option value="螺蛳粉">螺蛳粉</option>
            <option value="臭豆腐">臭豆腐</option>
            <option value="热干面">热干面</option>
            <option value="胡辣汤">胡辣汤</option>
        </select>
    </div>
    <script>
        const vm = new Vue({
            el: '#app',
            data() {
                return {
                    city: '',
                    food: []
                }
            }
        })
    </script>
</body>

</html>